package com.biostime.qdingding.modules.qd.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.api.dto.PersonalCenterDto;
import com.biostime.qdingding.modules.qd.entity.Member;


/**
 * 会员Dao
 * @author phil
 * @version 2015-11-06
 */
@MyBatisDao
public interface MemberDao extends CrudDao<Member> {
	public Member getByMobile(String mobile);
	
	public List<Member> findListByMobile(Member entity);
	
	public List<Member> findAPPUser(Member member);

	//	<!-- ————————————————————————————楚河汉界，APP开发，敢动？打死! ————————————————————————————————————-->
	public PersonalCenterDto apiGet(String userId);
	
	public int apiUpdateNickname(@Param("userId") String userId,@Param("nickname") String nickname);
	
	public int apiUpdateDistrict(@Param("userId") String userId,@Param("district") String district);
	
	public List<String> apiGetChildId(String memberId);
	
	public List<String> apiGetParentId(String studentId);
}